package Practice.ooday04;
import java.util.TimerTask;
import  java.util.Timer;
public class TimerDome {
    public static void main(String[] args) {
        Timer timer = new Timer();
        int interval = 2000;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("lalalalala");
            }
        }, interval, interval);

    }
}
